package namespace

import (
	corev1 "k8s.io/api/core/v1"
)

func NamespaceList(corev1 *corev1.NamespaceList) []string {
	result := make([]string, 0)
	for _, namespace := range corev1.Items {
		result = append(result, namespace.Name)
	}
	return result
}
